<?php

namespace App\Http\Controllers;

use App\Services\Api\ApiService;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    protected $apiService;//错误提示接口

    protected $showPage = 10;
    /**
     * Controller constructor.
     * @param ApiService $apiService
     */
    public function __construct(ApiService $apiService)
    {
        $this->apiService = $apiService;
    }

    /**
     * 全局分页参数
     * @return int
     */
    public function getShowPage(){
        return $this->showPage;
    }
}
